import request from "@/utils/httpInterceptor";

export const range = [
  {
    value: 1,
    text: "生产停工",
  },
  {
    value: 2,
    text: "机修停工",
  },
  {
    value: 3,
    text: "无计划停工",
  },
  {
    value: 4,
    text: "其它原因",
  },
];
//待确认工程队信息表格
export const addPlanProjectAppQuotationColumns = [
  {
    title: "序号",
    dataIndex: "index",
    valueType: "index",
  },
  {
    title: "工程队名称",
    key: "teamName",
    dataIndex: "teamName",
  },
  {
    title: "联系人",
    key: "contactsName",
    dataIndex: "contactsName",
  },
  {
    title: "手机号码",
    key: "contactsPhone",
    dataIndex: "contactsPhone",
  },
  {
    title: "总金额",
    key: "amt",
    dataIndex: "amt",
  },
  {
    title: "报价日期",
    key: "createTime",
    dataIndex: "createTime",
  },
  {
    title: "报价人",
    key: "creatorName",
    dataIndex: "creatorName",
  },
  {
    title: "备注",
    key: "remarks",
    dataIndex: "remarks",
  },
  {
    title: "确认人",
    key: "confirmName",
    dataIndex: "confirmName",
  },
  {
    title: "确认时间",
    key: "confirmTime",
    dataIndex: "confirmTime",
  },
  {
    title: "状态",
    key: "isConfirm",
    dataIndex: "isConfirm",
	render: (text:unknown) => (text === '1' ? '已确认' : text === '0' ? '未确认' : null),
  },
];

/** 任务处理API-审核通过 */
export const poststoppageapproved = (params) =>
  request("/activiti/stoppage/task/approved", {
    method: "POST",
    data: params,
    complete: () => {},
  });
  
export const postSaleBillApproved = (params) =>
  request("/activiti/user/task/approved/sale-bill-deduct", {
    method: "POST",
    data: params,
    complete: () => {},
  });
  
export const postWasteBillApproved = (params) =>
  request("/activiti/user/task/approved/waste-sale-bill-financial", {
    method: "POST",
    data: params,
    complete: () => {},
  });

export const postQthtfkApproved = (params) =>
  request("/activiti/other/contract/finance/approved", {
    method: "POST",
    data: params,
    complete: () => {},
  });
   
export const postClfkApproved = (params) =>
  request("/activiti/payment/task/approved/dispose-payment-deduct", {
    method: "POST",
    data: params,
    complete: () => {},
  });

export const postFybxApproved = (params) =>
  request("/activiti/comprehensive/expense/task/approved", {
    method: "POST",
    data: params,
    complete: () => {},
  });
  
  
  
 
  
 
